Optimal. Leaf size=25 \[ -\frac{(d \cos (a+b x))^{n+1}}{b d (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.022271, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {2565, 30} \[ -\frac{(d \cos (a+b x))^{n+1}}{b d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2565
Rule 30
Rubi steps
\begin{align*} \int (d \cos (a+b x))^n \sin (a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int x^n \, dx,x,d \cos (a+b x)\right )}{b d}\\ &=-\frac{(d \cos (a+b x))^{1+n}}{b d (1+n)}\\ \end{align*}
Mathematica [A] time = 0.0100037, size = 26, normalized size = 1.04 \[ -\frac{\cos (a+b x) (d \cos (a+b x))^n}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 26, normalized size = 1. \begin{align*} -{\frac{ \left ( d\cos \left ( bx+a \right ) \right ) ^{1+n}}{bd \left ( 1+n \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.2406, size = 59, normalized size = 2.36 \begin{align*} -\frac{\left (d \cos \left (b x + a\right )\right )^{n} \cos \left (b x + a\right )}{b n + b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.80926, size = 61, normalized size = 2.44 \begin{align*} \begin{cases} \frac{x \sin{\left (a \right )}}{d \cos{\left (a \right )}} & \text{for}\: b = 0 \wedge n = -1 \\x \left (d \cos{\left (a \right )}\right )^{n} \sin{\left (a \right )} & \text{for}\: b = 0 \\- \frac{\log{\left (\cos{\left (a + b x \right )} \right )}}{b d} & \text{for}\: n = -1 \\- \frac{d^{n} \cos{\left (a + b x \right )} \cos ^{n}{\left (a + b x \right )}}{b n + b} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15563, size = 34, normalized size = 1.36 \begin{align*} -\frac{\left (d \cos \left (b x + a\right )\right )^{n + 1}}{b d{\left (n + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]